home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Think Class Libraries / WASTE TCL 2.0b2 / WASTE VA / Source / x_CAbout.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-16  |  2.3 KB  |  100 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  x_CAbout.h
  3.  
  4.             Header File For CAbout Lower-Layer Dialog Class
  5.     
  6.     Copyright Â© 1996 Dan Crevier. All rights reserved.
  7.  
  8.     Generated by Visual Architectâ„¢
  9.  
  10.     This file is rewritten each time you generate code. You should not
  11.     make changes to this file; changes should go in the My.h
  12.     file, instead.
  13.  
  14.     If you want to change how Visual Architect generates this file, you can
  15.     change the template for this file. It is "_Dialog.h" in the Visual Architect
  16.     Templates folder.
  17.  
  18.  ******************************************************************************/
  19.  
  20. #pragma once
  21.  
  22. #include "CDialogDirector.h"
  23.  
  24. class CStaticText;
  25. class CButton;
  26.  
  27.     // Data struct for initializing dialog items
  28.     // and receiving changed values
  29.  
  30. typedef struct
  31. {
  32.     // This dialog has no editable panes!
  33.     // The Boolean prevents a compile error.
  34.     
  35.     Boolean    dummy;
  36. } CAboutData;
  37.  
  38.     // We define a separate struct for UpdateData() which
  39.     // eliminates duplicate data types
  40.  
  41. typedef struct
  42. {
  43.     Str255        stringvalue;            // CDialogText
  44.     long        longvalue;                // CIntegerText
  45.     short        value;                    // All other controls and buttons
  46.     Point        selection;                // CArrayPane
  47. } CAboutUpdate;
  48.  
  49. class CDirectorOwner;
  50. class CPanorama;
  51. class CPane;
  52.  
  53. class x_CAbout : public CDialogDirector
  54. {
  55. public:
  56.  
  57.     TCL_DECLARE_CLASS
  58.  
  59.                                         // Pointers to panes in window
  60.     CStaticText    *fAbout_Stat1;
  61.     CButton    *fAbout_Butn2;
  62.     CStaticText    *fAbout_Stat3;
  63.     CStaticText    *fAbout_Stat5;
  64.  
  65.  
  66.     void     Ix_CAbout(CDirectorOwner *aSupervisor, Boolean push = FALSE);
  67.  
  68.     virtual    long    DoModalDialog(long defaultCmd);
  69.     virtual    Boolean    Close(Boolean quitting);
  70.     virtual    void    ProviderChanged(CCollaborator *aProvider, long reason, void* info);
  71.  
  72. protected:
  73.     Boolean            ignore;
  74.     Boolean            pushData;
  75.     CAboutData    saveData;
  76.  
  77.     virtual void     MakeNewWindow(void);
  78.  
  79.                                 // Pull-style functions
  80.     virtual void     BeginData(CAboutData *initial);
  81.     virtual void     UpdateData(CAboutUpdate *update, long itemNo);
  82.     virtual void     EndData(CAboutData *final);
  83.  
  84.                                 // Push-style functions
  85.     virtual void    SetData(const CAboutData& initial);
  86.     virtual void    GetData(CAboutData& final);
  87.  
  88.     virtual void    DispensePaneValues(const CAboutData& data);
  89.     virtual void    CollectPaneValues(CAboutData& data);
  90.  
  91.  
  92.     CPane    *FindPane(long ID);
  93.  
  94. private:
  95.     virtual    void     DoBeginData(Boolean push);
  96.     virtual    void     DoEndData(long theCommand);
  97. };
  98.  
  99. #define    CVueCAbout    129
  100.